<?php


/**
* Puree CMS
* http://www.molotsoft.ru
*
* @package Puree_CMS
* @subpackage Admin/Elements
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: admin_view_buttons_edit.ctp 1513 2010-04-21 13:16:33Z molotsoft@gmail.com $
* @link $HeadURL: http://puree-cms.googlecode.com/svn/trunk/plugins/admin/views/elements/pages/admin_view_buttons_edit.ctp $
*/


// form_buttons
echo '<div class="form_buttons">';

// form_button_save
echo '<div class="form_button form_button_save">' . $routine->buttonSubmit('accept', __('save_action', TRUE)) . '</div>';

// form_button_preview
if (is_file(VIEWS . $this->params['controller'] . DS . 'view' . $this->ext)) {
	$preview_url = array('action' => 'view', 'id' => $id, 'admin' => FALSE, 'preview' => TRUE, 'autoPage' => FALSE);
	echo '<div class="form_button form_button_preview">' . $routine->button('zoom', __('preview_action', TRUE), $preview_url, array('target' => '_preview')) . '</div>';
}

echo '</div>'; // end of form_buttons


?>